<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>


<script language="javascript" type="text/javascript">
	function topage(page) {
		var form = document.forms[0];
		//alert(form.action);
		form.pageNo.value = page;
		form.submit();
	}
</script>
<tr class="fristline">
	<td >
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				
				<td>
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td  align="left">
								当前页:第
								<s:property value="page.currentPage" />
								页 | 总记录数:
								<s:property value="page.totalRecord" />
								条 | 每页显示:
								<s:property value="page.maxResult" />
								条 | 总页数:
								<s:property value="page.totalPage" />
								页 
						  </td>
						  <!-- 
						  <td width="150" ><div align="center"><span>
											<s:iterator begin="page.pageIndex.startIndex"
												end="page.pageIndex.endIndex" var="wp">
												<s:if test="#page.currentPage== #wp">
													<font color="#FF0000"><s:property value="#wp" /> </font>&nbsp;
	                                            </s:if>
												<s:else>
													<a href="javascript:topage('<s:property value="#wp"/>')"><s:property
															value="#wp" /> </a>&nbsp;
	                                            </s:else>
											</s:iterator>
										</span></div></td> -->
							<td>
								<table border="0" align="right" cellpadding="0" cellspacing="0">
									<tr>
										
											<s:if test="page.currentPage > 1">
												<td width="40" align="right">
													<a href="javascript:topage(1)">首页</a></td>
												<td width="45" align="right">
													<a href="javascript:topage('<s:property value="page.currentPage - 1"/>')">上一页</a>	</td>
											</s:if>
											<s:else>
												<td width="40" align="right">首页</td>
												<td width="45" align="right">上一页</td>
											</s:else>
										<s:if test="page.currentPage < page.totalPage">
											<td width="45" align="right">
												<a
													href="javascript:topage('<s:property value="page.currentPage + 1"/>')">下一页</a>											</td>
											<td width="40" align="right">
												<a
													href="javascript:topage('<s:property value="page.totalPage"/>')">末页</a>											</td>
										</s:if>
										<s:else>
											<td width="45" align="right">下一页</td>
											<td width="40" align="right">末页</td>
										</s:else>
									</tr>
							  </table>
							</td>
						</tr>
					</table>
				</td>
				
			</tr>
		</table>
	</td>
</tr>

